﻿using cludg.Domain.Content.Stories;
using cludg.Domain.Content.Stories.Subjects;
using cludg.Web.Core.Bootstrappers;
using cludg.Web.Core.ViewRegister;
using cludg.Web.ViewModels;

namespace cludg.Web.Bootstrappers
{
	public class ViewRegisterBootstrapper : Bootstrapper
	{
		protected readonly IViewRegisterContainer ViewRegisterContainer;

		public ViewRegisterBootstrapper(IViewRegisterContainer viewRegisterContainer)
		{
			ViewRegisterContainer = viewRegisterContainer;
		}

		public override void Execute()
		{
			ViewRegisterContainer.RegisterView(typeof(ImageSubject), "ImageSubjectControl");
			ViewRegisterContainer.RegisterView(typeof(StorySubject), "DefaultSubjectControl");
			ViewRegisterContainer.RegisterView(typeof(VideoSubject), "DefaultSubjectControl");

			ViewRegisterContainer.RegisterView(typeof(CommentDetailsModel), "CommentDetailsControl");
		}
	}
}